package mybatisplusexercise.pojo;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.*;
import mybatisplusexercise.enums.SexEnums;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class User {
    private Long id;
    private String name;
    private Integer age;
    private String Email;
    @EnumValue//将注解所标识的属性的值存储到数据库中
    private SexEnums sex;
    @TableLogic
    private Integer isDeleted;

}
